﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:v="clr-namespace:ShredTheLog.Views;assembly=ShredTheLog.Views"
    xmlns:vm="clr-namespace:ShredTheLog.ViewModels;assembly=ShredTheLog.ViewModels"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    xmlns:generated="clr-namespace:ShredTheLog.Api;assembly=ShredTheLog.Generated"
    xmlns:c="clr-namespace:ShredTheLog.Controls;assembly=ShredTheLog.Controls"
    xmlns:tk="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
    >

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="CommonImages\GenderImages.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
    <BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>

    <DrawingImage x:Key="MaleImage">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="#0F66E4" Geometry="{StaticResource MaleGeometry}"/>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="FemaleImage">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="#ED2A3B" Geometry="{StaticResource FemaleGeometry}"/>
        </DrawingImage.Drawing>
    </DrawingImage>

    <Style x:Key="HeaderStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="Foreground" Value="{StaticResource HeaderTextBrush}"/>
    </Style>

    <Style x:Key="AccessHeaderStyle" TargetType="{x:Type AccessText}">
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="FontWeight" Value="SemiBold"/>
        <Setter Property="Foreground" Value="{StaticResource HeaderTextBrush}"/>
        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
    </Style>

    <Style x:Key="SideMenuButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="#2E6691"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border Name="border" Background="{TemplateBinding Background}" BorderThickness="0, 1, 0, 1">
                        <ContentPresenter RecognizesAccessKey="True" Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" Margin="{TemplateBinding Control.Padding}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="border" Property="Background" Value="#D0D7F0"/>
                            <Setter TargetName="border" Property="BorderBrush" Value="#91939B"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <DropShadowEffect x:Key="SmallShadow" Direction="-90" BlurRadius="3" ShadowDepth="1"/>
    <DropShadowEffect x:Key="LargeShadow" Direction="-90" ShadowDepth="3" Opacity="0.5"/>
    <SolidColorBrush x:Key="LightGrayBackgroundBrush" Color="#F8F8F8"/>
    <SolidColorBrush x:Key="GrayBackgroundBrush" Color="#EEEEEE"/>
    <SolidColorBrush x:Key="LightGrayBorderBrush" Color="#E1E1E1"/>
    <SolidColorBrush x:Key="HeaderTextBrush" Color="#487DA7"/>

    <Style x:Key="ShadowedBorderStyle" TargetType="{x:Type Border}">
        <Setter Property="Effect" Value="{StaticResource LargeShadow}"/>
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Background" Value="{StaticResource LightGrayBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource LightGrayBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>

    <Style x:Key="BlueGroupBoxStyle" TargetType="{x:Type GroupBox}">
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <DockPanel>
                        <Border DockPanel.Dock="Top" CornerRadius="3,3,0,0" Background="{StaticResource HeaderTextBrush}" Padding="3" BorderThickness="1, 1, 1, 0" BorderBrush="#C6C6C6">
                            <ContentPresenter ContentSource="Header"/>
                        </Border>
                        <Border CornerRadius="0,0,3,3" Background="{StaticResource LightGrayBackgroundBrush}" BorderThickness="1, 0, 1, 1" BorderBrush="#C6C6C6">
                            <ContentPresenter ContentSource="Content"/>
                        </Border>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding}" Foreground="White" HorizontalAlignment="Center"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect" Value="{StaticResource LargeShadow}"/>
    </Style>
</ResourceDictionary>